<?php /* Smarty version Smarty-3.1.16, created on 2017-05-10 19:53:33
         compiled from "E:\blog\App\Back\View\Comment\index.html" */ ?>
<?php /*%%SmartyHeaderCode:183765912e1a8981d92-86843268%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0841909d09ee8471239684a8c4d26cbd3824b25d' => 
    array (
      0 => 'E:\\blog\\App\\Back\\View\\Comment\\index.html',
      1 => 1494416853,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '183765912e1a8981d92-86843268',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.16',
  'unifunc' => 'content_5912e1a89eb448_27584530',
  'variables' => 
  array (
    'cmtInfo' => 0,
    'row' => 0,
    'strpage' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5912e1a89eb448_27584530')) {function content_5912e1a89eb448_27584530($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'E:/blog/Vendor/Smarty/plugins\\modifier.date_format.php';
?><?php echo $_smarty_tpl->getSubTemplate ('../Public/header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>


<script>
	//定义页面载入事件
    $(function(){
        //获取btnAdd按钮
        $('#btnRecycle').bind('click',function(){
            // 设置“添加文章”链接
            window.location.href = 'index.php?p=Back&c=Comment&a=recycle';
        });
    });
</script>

<div class="admin">
	<form action="index.php?p=Back&c=Comment&a=delAll" method="POST">
    <div class="panel admin-panel">
    	<div class="panel-head"><strong>文章列表</strong></div>
        <div class="padding border-bottom">
            <input type="button" class="button button-small checkall" name="checkall" checkfor="id[]" value="全选" />
            <input type="submit" class="button button-small border-yellow"  value="批量删除" onclick="return confirm('确定要删除吗?');"/>
            <input type="button" id="btnRecycle" class="button button-small border-blue" value="回收站" />
        </div>
        <table class="table table-hover">
        	<tr>
                <th width="45">选择</th>
                <th width="120">所属文章</th>
                <th width="200">评论内容</th>
                <th width="180">评论时间</th>
                <th width="100">操作</th>
            </tr>
            <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['cmtInfo']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value) {
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
            <tr>
                <td><input type="checkbox" name="cmt_id[]" value="<?php echo $_smarty_tpl->tpl_vars['row']->value['cmt_id'];?>
" /></td>
                <td><?php echo $_smarty_tpl->tpl_vars['row']->value['title'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['row']->value['cmt_content'];?>
</td>
                <td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['row']->value['cmt_time'],'%Y-%m-%d %H:%M:%S');?>
</td>
                <td>
                    <a class="button border-blue button-little" href="index.php?p=Back&c=Comment&a=edit&cmt_id=<?php echo $_smarty_tpl->tpl_vars['row']->value['cmt_id'];?>
">修改</a> 
                    <a class="button border-yellow button-little" href="index.php?p=Back&c=Comment&a=del&cmt_id=<?php echo $_smarty_tpl->tpl_vars['row']->value['cmt_id'];?>
" onclick="return confirm('确定要删除吗?');" >删除</a>
                </td>
            </tr>
            <?php } ?>
        </table>
		<div class="panel-foot text-center">
          <?php echo $_smarty_tpl->tpl_vars['strpage']->value;?>

        </div>
    </div>
    </form>
    <br />
    <p class="text-right text-gray" style="float:right">基于<a class="text-gray" target="_blank" href="#">MVC框架</a>构建</p>
</div>
</body>
</html><?php }} ?>
